package la.bbs558.entity.params;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import la.bbs558.aop.valid.Valid;
import la.bbs558.entity.vo.BbsPostVO;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class BbsPostPage extends Page<BbsPostVO> {

    /**
     * 参考{@link la.bbs558.entity.enums.ClassIdType}
     */
    @Valid(msg = "classId必传")
    private Long classId;

    @Valid(msg = "boardId必传")
    private Long boardId;

    private String orderBy = "1";
    private Long userId;
    private String desc = "desc";
}
